package UDF;

import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.sql.hive.HiveContext;

/**
 * <pre>
 * Created with IntelliJ IDEA.
 * User: zhengzhi
 * Date: 2017/4/7
 * To change this template use File | Settings | File Templates.
 * </pre>
 */
public class CalStringLength {
    public static void main(String[] args) {
        SparkConf sparkConf = new SparkConf().setAppName("learningUDF").setMaster("local");

        JavaSparkContext sparkContext = new JavaSparkContext(sparkConf);

        new HiveContext(sparkContext.sc());
    }
}
